package com.subaiqiao.yunshiyuan.basis.utils;

import java.util.List;

/**
 * 分页插件 MyBatis-plus
 * @param <T>
 */
public class PageEntity <T>{
    /** 数据总大小  */
    private int total;
    /** 数据  */
    private List<T> data;

    public PageEntity(){

    }

    public PageEntity(int total, List<T> data){
        this.data = data;
        this.total = total;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
